package com.zhongyi.http.service;

import java.util.List;

import com.zhongyi.entity.Company;
import com.zhongyi.entity.Contact;
import com.zhongyi.entity.SysLog;
import com.zhongyi.util.Pager;

public interface MailService {
	/**
	 * 查询邮件列表
	 * @return
	 */
	public List<Contact> queryMailList(String pagerSQL, Pager pager);
	
	
	public List<Contact> queryMailList(String pagerSQL, Object[] params);
	
	
	public List queryForList(String query);
	
	public List<Contact> getMailByIds(String querySQL,String[] ids);
	
	/**
	 * 邮件群发
	 * @param mailList
	 * @param subject
	 * @param message
	 * @param content
	 * @param mailType
	 * @return
	 */
	public boolean sendHtmlMailList(List<Contact> mailList,String subject,String message,String content,String mailType);
	
	/**
	 * 
	 * @param mail
	 * @param subject
	 * @param message
	 * @param content
	 * @param mailType
	 * @return
	 */
	public boolean sendHtmlMail(Contact mail,String subject,String message,String content,String mailType);
	
	/**
	 * 查询企业基础信息
	 * @param corpIds
	 * @return
	 */
	public List<Company> getCorpListById(String querySQL,String[] corpIds);
	
	
	
	public List queryMailByStatus(String status);
	
	/**
	 * 更新邮件发送状态
	 * @param contact
	 */
	public void updateMailStatus(String updateSQL,Contact contact,String status);
	
	
	/**
	 * 记录邮件发送日志
	 * @param insertSQL
	 * @param sysLog
	 */
	public void insertToSysLog(String insertSQL,SysLog sysLog);
	
	
}
